<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            box-sizing: border-box;
            padding: 0px;
            margin: 0px;
        }

        .box {
            list-style: none;
            display: inline-block;
            background-color: #ff0;
        }

        .box > li {
            float: left;
            width: 100px;
            height: 100px;
            background-color: red;
            border: 1px solid #000;
        }

    </style>
</head>
<body>
    <ul class="box">
        <li></li>
        <li></li>
    </ul>
</body>
</html>